﻿#pragma once

#include <QWidget>

class SvgCanvas;
class SvgPropInput;
class SvgColorSelector;

class SvgCanvasInfoWidget:public QWidget
{
	Q_OBJECT
public:
	explicit SvgCanvasInfoWidget(QWidget* parent);

	void UpdateData(const SvgCanvas& canvas) const;

signals:
	void CanvasSizeChanged(double width, double height);
	void CanvasBackgroundChanged(const QColor& color);

private slots:
	void _CanvasSizeChanged(double);

private:
	SvgPropInput* m_widthInput = nullptr;
	SvgPropInput* m_heightInput = nullptr;
	SvgColorSelector* m_colorSelector = nullptr;
};
